﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Booking.ascx.cs" Inherits="UserControl_Booking" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Src="~/Admin/UserControl/tabQuoteDetail.ascx" TagName="tabQuoteDetail"
    TagPrefix="uc1" %>
<%@ Register Src="~/Admin/UserControl/ucJobStatus.ascx" TagName="ucJobStatus" TagPrefix="uc2" %>
<%@ Register Src="~/Admin/UserControl/ucPartsUsed.ascx" TagName="ucPartsUsed" TagPrefix="uc3" %>
<%@ Register Src="~/Admin/UserControl/ucWorkDetail.ascx" TagName="ucWorkDetail" TagPrefix="uc4" %>
<%@ Register Src="~/Admin/UserControl/ActionList1.ascx" TagName="ucActionList1" TagPrefix="uc7" %>
<%@ Register Src="~/Admin/UserControl/ucLoanPhoneDetails.ascx" TagName="ucLoanPhoneDetails"
    TagPrefix="uc5" %>
<%@ Register Src="~/Admin/UserControl/ucListStatus.ascx" TagName="ucListStatus" TagPrefix="uc6" %>
<%@ Register Src="~/Admin/UserControl/ucListQuoteDetail.ascx" TagName="ucListQuoteDetail"
    TagPrefix="uc8" %>
<%@ Register Src="ucbutton.ascx" TagName="ucbutton" TagPrefix="uc9" %>
<%@ Register Src="ucLoanPhone.ascx" TagName="ucLoanPhone" TagPrefix="uc10" %>

<script type="text/javascript">
    $(document).ready(function() {
        $('#ctl00_ContentPlaceHolder1_ucIntroduction1_drLanguage').click(function() {
            $('#ctl00_ContentPlaceHolder1_ucIntroduction1_drLanguage').css('hover', 'background:red');

        });
    });
</script>

<style type="text/css">
    .style1
    {
        height: 25px;
    }
    .tab_content
    {
        font-size: 14px;
        margin: 0 11px 0 0;
        padding-top: 10px;
        width: 100%;
        line-height: 20px;
    }
    .style2 table
    {
        top: 0 !important;
    }
    .style2 table td input
    {
        width: 140px !important;
    }
    .style3 table
    {
        top: 0 !important;
    }
    .style3 table td input
    {
        width: 135px !important;
    }
    
    .style2 tr td
    {
    	padding:0;
    
    }
</style>
<div class="block">
</div>

<script language="javascript" type="text/javascript">
    function GetvalueListBox() {
        //        var listbox = document.getElementById("<%=ListFault.ClientID %>");
        //        var textbox = document.getElementById("<%=txtFaultDes.ClientID %>");
        //        var myvalue = listbox.options(listbox.selectedIndex).text;
        //        textbox.value = myvalue;
        var listbox = document.getElementById("<%=ListFault.ClientID %>");
        var textbox = document.getElementById("<%=txtFaultDes.ClientID %>");
        var listLength = listbox.options.length;
        for (var i = 0; i < listLength; i++) {
            if (listbox.options[i].selected) {
                //lst2.options.add(sel.options[i].text);
                textbox.value += listbox.options(listbox.selectedIndex).text + ", ";
            }
        }
    }

    function dropApprovalmode() {
        var index = document.getElementById("<%=drQuotationStatus.ClientID %>").selectedIndex;
        var text = "";
        var style = "";
        if (index == 2) {
            text = "inline";
            style = "inline";
        }
        else if (index == 0 || index == 1 || index == 3) {
            text = "none";
            style = "none";

        }
        document.getElementById("<%=lblCost.ClientID %>").style.display = text;
        document.getElementById("<%=txtCost.ClientID %>").style.display = style;
    }

    function clickAccessories() {
        var ckBattery = document.getElementById("<%=ckBattery.ClientID %>");
        var ckBattery1 = document.getElementById("<%=ckBattery1.ClientID %>");
        var ckACCharge = document.getElementById("<%=ckACCharge.ClientID %>");
        var t1 = "";
        var t2 = "";
        var t3 = "";
        var txtAccessories = document.getElementById("<%=txtAccessories.ClientID %>");
        if (ckBattery.checked == true) {
            t1 = "Battery, ";
        }
        if (ckBattery1.checked == true) {
            t2 = "Battery Cover, ";
        }
        if (ckACCharge.checked == true) {
            t3 = "AC Charger, ";
        }
        txtAccessories.value = t1 + t2 + t3;
    }

    //    $(document).ready(function() {
    //        $('#ctl00_ContentPlaceHolder1_Booking1_TabContainer1_TabPanel1_drModel_Button').click(function() {
    //            $('#ctl00_ContentPlaceHolder1_Booking1_TabContainer1_TabPanel1_drModel_OptionList').css('top', '').css('left', '');     
    //        });
    //    });

    
</script>

<div class=" block">
</div>
<div class="Post">
    <div class="Post-tl">
    </div>
    <div class="Post-tr">
    </div>
    <div class="Post-bl">
    </div>
    <div class="Post-br">
    </div>
    <div class="Post-tc">
    </div>
    <div class="Post-bc">
    </div>
    <div class="Post-cl">
    </div>
    <div class="Post-cr">
    </div>
    <div class="Post-cc">
    </div>
    <div class="Post-body">
        <div class="Post-inner">
            <div class="PostContent">
                <h2 class="PostHeaderIcon-wrapper">
                    BOOKING</h2>
                <div class="PostHeaderIcons metadata-icons">
                    <div id="message_green" runat="server" style="display: none">
                        <table border="0" width="100%" cellpadding="0" cellspacing="0">
                            <tr>
                                <td class="green-left">
                                    Infomation update sucessfully. <a href="Booking.aspx">New Booking.</a>
                                </td>
                                <td class="green-right">
                                    <a class="close-green">
                                        <img src="image/icon_close_green.gif" alt="" /></a>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="PostContent">
                    <div class="article">
                        <span class="print-link"></span>
                        <table style="border-radius: 7px; margin-top: -5px; width: 100%">
                            <tr>
                                <td>
                                    <table id="table5">
                                        <tr>
                                            <td>
                                                Customer
                                            </td>
                                            <td class="style2">
                                                <asp:ComboBox ID="cbCustomer" runat="server" AutoPostBack="true"  AutoCompleteMode="Append"
                                                    MaxLength="0" OnSelectedIndexChanged="cbCustomer_SelectedIndexChanged" CssClass="cus" >
                                                </asp:ComboBox>
                                            </td>
                                            <td>
                                                Customer
                                            </td>
                                            <td>
                                                <asp:HyperLink ID="hyCustomer" runat="server">HyperLink</asp:HyperLink>
                                            </td>
                                            <td>
                                                ID
                                            </td>
                                            <td>
                                                <asp:TextBox ID="txtCusID" CssClass="inp-form" runat="server" Width="90px"></asp:TextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                Jod ID
                                            </td>
                                            <td>
                                                <asp:TextBox ID="txtJobNo" Enabled="false" CssClass="inp-form" runat="server"></asp:TextBox>
                                            </td>
                                            <td style="width: 100px">
                                                Job Type
                                            </td>
                                            <td class="style3">
                                                <%--<asp:DropDownList ID="drJobType" runat="server" Height="25px" Width="168px" AutoPostBack="True"
                                                    OnSelectedIndexChanged="drJobType_SelectedIndexChanged">
                                                    <asp:ListItem Value="0">--Type--</asp:ListItem>
                                                    <asp:ListItem Value="1">Non-Warranty</asp:ListItem>
                                                    <asp:ListItem Value="2">Warranty</asp:ListItem>
                                                </asp:DropDownList>--%>
                                                <asp:ComboBox ID="drJobType" runat="server" Width="100px" AutoCompleteMode="Append"
                                                    MaxLength="0" OnSelectedIndexChanged="drJobType_SelectedIndexChanged1" AutoPostBack="true">
                                                    <asp:ListItem Value="0">--Type--</asp:ListItem>
                                                    <asp:ListItem Value="1">Non-Warranty</asp:ListItem>
                                                    <asp:ListItem Value="0">Warranty</asp:ListItem>
                                                </asp:ComboBox>
                                            </td>
                                            <td>
                                                CurrentStatus
                                            </td>
                                            <td>
                                                <asp:TextBox ID="txtCurrentStatus" Enabled="false" CssClass="inp-form" runat="server"
                                                    Style="color: Red"></asp:TextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                Date Booked
                                            </td>
                                            <td>
                                                <asp:TextBox ID="txtDate" CssClass="inp-form" runat="server"></asp:TextBox>
                                                <asp:CalendarExtender ID="CalendarExtender1" TargetControlID="txtDate" Format="dd/MM/yyyy"
                                                    runat="server">
                                                </asp:CalendarExtender>
                                            </td>
                                            <td style="width: 100px">
                                                Booked By
                                            </td>
                                            <td>
                                                <asp:DropDownList ID="drBookBy" runat="server" Height="22px" Width="168px" Style="display: ">
                                                    <asp:ListItem Value="1">Michael</asp:ListItem>
                                                    <asp:ListItem Value="2">Thao</asp:ListItem>
                                                    <asp:ListItem Value="3">Tung</asp:ListItem>
                                                    <asp:ListItem Value="4">Mi</asp:ListItem>
                                                </asp:DropDownList>
                                            </td>
                                            <td>
                                                Status Date
                                            </td>
                                            <td>
                                                <asp:TextBox ID="txtStatusDate" Enabled="false" CssClass="inp-form" runat="server"
                                                    Style="color: Red"></asp:TextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:Label ID="Label2" runat="server" Style="display: none" Text="Quotation Status"></asp:Label>
                                            </td>
                                            <td>
                                                <asp:DropDownList ID="drQuotationStatus" Style="display: none" runat="server" Height="25px"
                                                    Width="120px">
                                                    <asp:ListItem Value="1">----</asp:ListItem>
                                                    <asp:ListItem Value="2">Waiting for quote</asp:ListItem>
                                                    <asp:ListItem Value="3">Quoted</asp:ListItem>
                                                    <asp:ListItem Value="4">BER</asp:ListItem>
                                                </asp:DropDownList>
                                                <asp:CalendarExtender ID="CalendarExtender3" TargetControlID="txtDate" Format="dd/MM/yyyy"
                                                    runat="server">
                                                </asp:CalendarExtender>
                                            </td>
                                            <td>
                                            </td>
                                            <td>
                                                <asp:Label ID="Label1" runat="server" Style="display: none" Text="Approval Status"></asp:Label>
                                            </td>
                                            <td>
                                                <asp:DropDownList ID="drApprovalStatus" Style="display: none" runat="server" Height="25px"
                                                    Width="168px">
                                                    <asp:ListItem Value="1">----</asp:ListItem>
                                                    <asp:ListItem Value="2">Pending Approval</asp:ListItem>
                                                    <asp:ListItem Value="3">Approved</asp:ListItem>
                                                    <asp:ListItem Value="4">Quote Rejected</asp:ListItem>
                                                </asp:DropDownList>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:Label ID="lblCost" runat="server" Text="Quoted"></asp:Label>
                                            </td>
                                            <td>
                                                <asp:TextBox ID="txtCost" runat="server"></asp:TextBox>
                                            </td>
                                            <td class="style2">
                                            </td>
                                            <td>
                                            </td>
                                        </tr>
                                    </table>
                                    <%--<table id="table0">
                                        <tr>
                                            <td>
                                                <asp:Label ID="Label2" runat="server" Style="display: none" Text="Quotation Status"></asp:Label>
                                            </td>
                                            <td>
                                                <asp:DropDownList ID="drQuotationStatus" Style="display: none" runat="server" Height="25px"
                                                    Width="120px">
                                                    <asp:ListItem Value="1">----</asp:ListItem>
                                                    <asp:ListItem Value="2">Waiting for quote</asp:ListItem>
                                                    <asp:ListItem Value="3">Quoted</asp:ListItem>
                                                    <asp:ListItem Value="4">BER</asp:ListItem>
                                                </asp:DropDownList>
                                                <asp:CalendarExtender ID="CalendarExtender2" TargetControlID="txtDate" Format="dd/MM/yyyy"
                                                    runat="server">
                                                </asp:CalendarExtender>
                                            </td>
                                            <td>
                                            </td>
                                            <td>
                                                <asp:Label ID="Label1" runat="server" Style="display: none" Text="Approval Status"></asp:Label>
                                            </td>
                                            <td>
                                                <asp:DropDownList ID="drApprovalStatus" Style="display: none" runat="server" Height="25px"
                                                    Width="168px">
                                                    <asp:ListItem Value="1">----</asp:ListItem>
                                                    <asp:ListItem Value="2">Pending Approval</asp:ListItem>
                                                    <asp:ListItem Value="3">Approved</asp:ListItem>
                                                    <asp:ListItem Value="4">Quote Rejected</asp:ListItem>
                                                </asp:DropDownList>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:Label ID="lblCost" runat="server" Text="Quoted"></asp:Label>
                                            </td>
                                            <td style="text-align: right">
                                                <asp:TextBox ID="txtCost" runat="server"></asp:TextBox>
                                            </td>
                                            <td class="style2">
                                            </td>
                                            <td>
                                            </td>
                                        </tr>
                                    </table>--%>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <div id="button">
                                        <uc9:ucbutton ID="ucbutton1" runat="server" />
                                    </div>
                                    <div id="abc">
                                        <div id="a0" class="tab_content" style="display: block; font-size: 14px">
                                            <asp:UpdatePanel ID="panel" runat="server">
                                                <ContentTemplate>
                                                    <asp:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="0" Style="margin-top: 0px;
                                                        font-size: 14px">
                                                        <asp:TabPanel runat="server" HeaderText="Phone Details" ID="TabPanel1" Font-Size="14px">
                                                            <HeaderTemplate>
                                                                <span style="font-size: 14px; line-height: 15px">Phone Details</span>
                                                            </HeaderTemplate>
                                                            <ContentTemplate>
                                                                <asp:UpdatePanel ID="upd_warranty" runat="server">
                                                                    <ContentTemplate>
                                                                        <asp:Panel ID="p_wantity" runat="server">
                                                                        </asp:Panel>
                                                                    </ContentTemplate>
                                                                    <Triggers>
                                                                        <asp:AsyncPostBackTrigger ControlID="drJobType" EventName="SelectedIndexChanged" />
                                                                    </Triggers>
                                                                </asp:UpdatePanel>
                                                                <table id="tab">
                                                                    <tr>
                                                                        <td>
                                                                            <asp:Label ID="Label4" runat="server" Text="Date Purchased"></asp:Label>
                                                                        </td>
                                                                        <td colspan="4">
                                                                            <asp:TextBox ID="txtDatePurchased" runat="server" Width="130px"></asp:TextBox>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td>
                                                                            <asp:Label ID="Label5" runat="server" Text="Store Name"></asp:Label>
                                                                        </td>
                                                                        <td>
                                                                            <asp:DropDownList ID="drStoreName" runat="server" Height="25px" Width="137px">
                                                                                <asp:ListItem>Store Name</asp:ListItem>
                                                                            </asp:DropDownList>
                                                                        </td>
                                                                        <td id="location">
                                                                            <asp:Label ID="Label8" runat="server" Text="Location"></asp:Label>
                                                                        </td>
                                                                        <td>
                                                                            <asp:DropDownList ID="drLocation" runat="server" Height="25px" Width="150px">
                                                                                <asp:ListItem>Location</asp:ListItem>
                                                                            </asp:DropDownList>
                                                                        </td>
                                                                        <td rowspan="3" align="right">
                                                                            <asp:Button ID="btnNew1" runat="server" Text="Add New" Height="40px" Width="65px" />
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td>
                                                                            <asp:Label ID="Label6" runat="server" Text="Address"></asp:Label>
                                                                        </td>
                                                                        <td>
                                                                            <asp:DropDownList ID="drAddress" runat="server" Height="25px" Width="200px">
                                                                                <asp:ListItem>Address</asp:ListItem>
                                                                            </asp:DropDownList>
                                                                        </td>
                                                                        <td>
                                                                            <asp:Label ID="Label9" runat="server" Text="Telephone"></asp:Label>
                                                                        </td>
                                                                        <td colspan="2">
                                                                            <asp:TextBox ID="txtTelephone" runat="server" Width="144px"></asp:TextBox>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td>
                                                                            <asp:Label ID="Label7" runat="server" Text="Proot Of Purchase"></asp:Label>
                                                                        </td>
                                                                        <td colspan="4">
                                                                            <asp:DropDownList ID="drProotOfPurchase" runat="server" Height="25px" Width="137px">
                                                                                <asp:ListItem>Purchase</asp:ListItem>
                                                                            </asp:DropDownList>
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                                <table id="tab" width="100%">
                                                                    <tr>
                                                                        <td class="style1" style="width: 10%;">
                                                                            Brand
                                                                        </td>
                                                                        <td class="style2">
                                                                            <asp:DropDownList ID="drBrand" runat="server" Width="100px" OnSelectedIndexChanged="drBrand_SelectedIndexChanged"
                                                                                AutoPostBack="True">
                                                                            </asp:DropDownList>
                                                                        </td>
                                                                        <td>
                                                                            Phone Model
                                                                        </td>
                                                                        <td class="style2">
                                                                            <asp:ComboBox ID="drModel" runat="server" EnableTheming="True" MaxLength="0" AutoCompleteMode="Append">
                                                                            </asp:ComboBox>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td style="width: 10%;">
                                                                            Phone IMEI No.
                                                                        </td>
                                                                        <td>
                                                                            <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server" TargetControlID="txtIMEI"
                                                                                FilterType="Numbers" Enabled="True">
                                                                            </asp:FilteredTextBoxExtender>
                                                                            <asp:TextBox ID="txtIMEI" runat="server" CssClass="inp-form" Width="90%"></asp:TextBox>
                                                                            <asp:Label ID="Label3" runat="server"></asp:Label>
                                                                        </td>
                                                                        <td class="style1">
                                                                            &nbsp;Serial No
                                                                        </td>
                                                                        <td class="style2">
                                                                            <asp:TextBox ID="txtMSN" runat="server" CssClass="inp-form" Width="90%"></asp:TextBox>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td class="style1" style="width: 10%;">
                                                                            Phone Condition
                                                                        </td>
                                                                        <td class="style2">
                                                                            <asp:ComboBox ID="drConditions" runat="server" Width="100px" AutoCompleteMode="Append"
                                                                                MaxLength="0">
                                                                                <asp:ListItem Value="1">Poor</asp:ListItem>
                                                                                <asp:ListItem Value="2">Fair</asp:ListItem>
                                                                                <asp:ListItem Value="3">Good</asp:ListItem>
                                                                            </asp:ComboBox>
                                                                        </td>
                                                                        <td>
                                                                            Phone Network with
                                                                        </td>
                                                                        <td class="style2">
                                                                            <asp:ComboBox ID="drNetwork" runat="server" Width="100px" AutoCompleteMode="Append"
                                                                                MaxLength="0">
                                                                                <asp:ListItem Value="Optus">Optus</asp:ListItem>
                                                                                <asp:ListItem Value="Telstra">Telstra</asp:ListItem>
                                                                                <asp:ListItem Value="Vodafone">Vodafone</asp:ListItem>
                                                                                <asp:ListItem Value="Virgin">Virgin</asp:ListItem>
                                                                            </asp:ComboBox>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td class="style1" style="width: 10%;">
                                                                            Condition Details
                                                                        </td>
                                                                        <td colspan="3">
                                                                            <asp:TextBox ID="txtConditionDetails" runat="server" CssClass="inp-form" Style="color: Black"
                                                                                TextMode="MultiLine" Width="96.5%"></asp:TextBox>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td class="style1" style="width: 10%;">
                                                                            Lock Code
                                                                        </td>
                                                                        <td colspan="3">
                                                                            <asp:TextBox ID="txtLockCode" runat="server" CssClass="inp-form" Width="70%"></asp:TextBox>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td class="style1" valign="top" style="width: 10%;">
                                                                            Accessories With Phone
                                                                        </td>
                                                                        <td colspan="3">
                                                                            <asp:CheckBox ID="ckBattery" runat="server" Text="Battery" onclick="clickAccessories()" />
                                                                            &nbsp;&nbsp;
                                                                            <asp:CheckBox ID="ckBattery1" runat="server" Text="Battery Cover" onclick="clickAccessories()" />
                                                                            &nbsp;&nbsp;
                                                                            <asp:CheckBox ID="ckACCharge" runat="server" Text="AC Charger" onclick="clickAccessories()" />
                                                                            &nbsp;&nbsp;
                                                                            <asp:TextBox ID="txtAccessories" TabIndex="1" runat="server" Style="color: Black"
                                                                                CssClass="inp-form" TextMode="MultiLine" Width="96.5%"></asp:TextBox>
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </ContentTemplate>
                                                        </asp:TabPanel>
                                                        <asp:TabPanel runat="server" HeaderText="Fault Detail" ID="TabPanel2">
                                                            <HeaderTemplate>
                                                                <span style="font-size: 14px; line-height: 15px">Fault Detail</span>
                                                            </HeaderTemplate>
                                                            <ContentTemplate>
                                                                <asp:UpdatePanel ID="panelFaultList" runat="server">
                                                                    <ContentTemplate>
                                                                        <table id="tab" width="100%">
                                                                            <tr>
                                                                                <td class="style1" style="text-align: right" valign="top">
                                                                                    Fault Descriptions
                                                                                </td>
                                                                                <td>
                                                                                    <asp:ListBox ID="ListFault" runat="server" Height="157px" SelectionMode="Multiple"
                                                                                        Width="250px"></asp:ListBox>
                                                                                    <%-- &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;--%>
                                                                                </td>
                                                                                <td valign="middle">
                                                                                    <asp:Button ID="btnNext" runat="server" OnClick="btnNext_Click" Text="&gt;&gt;" Width="25px" />
                                                                                </td>
                                                                                <td>
                                                                                    <asp:TextBox ID="txtFaultDes" runat="server" TabIndex="2" CssClass="inp-form" Style="color: rgb(79, 0, 79)"
                                                                                        Height="150px" TextMode="MultiLine" Width="180px"></asp:TextBox>
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td class="style1" style="text-align: right" valign="top">
                                                                                    Other Instructions
                                                                                </td>
                                                                                <td colspan="3">
                                                                                    <asp:TextBox ID="txtInstruction" runat="server" Style="color: black" CssClass="inp-form"
                                                                                        TextMode="MultiLine" Width="92%"></asp:TextBox>
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td colspan="4" align="center">
                                                                                    <asp:Button ID="btnSave" runat="server" Text="SAVE" CssClass="button_all" OnClick="btnSave_Click" />
                                                                                    <asp:Label ID="lbMess" runat="server" Text=""></asp:Label>
                                                                                </td>
                                                                            </tr>
                                                                        </table>
                                                                    </ContentTemplate>
                                                                    <Triggers>
                                                                        <asp:AsyncPostBackTrigger ControlID="btnNext" EventName="Click" />
                                                                    </Triggers>
                                                                </asp:UpdatePanel>
                                                            </ContentTemplate>
                                                        </asp:TabPanel>
                                                        <asp:TabPanel ID="TabPanel3" runat="server">
                                                            <HeaderTemplate>
                                                                <asp:Label ID="lblLPhone" runat="server" Text="Loan Phone" Style="color: Peru; font-size: 14px;
                                                                    line-height: 15px"></asp:Label>
                                                            </HeaderTemplate>
                                                            <ContentTemplate>
                                                                <uc5:ucLoanPhoneDetails ID="ucLoanPhone1" runat="server" />
                                                                <%--<uc10:ucLoanPhone ID="ucLoanPhone1" runat="server" />--%>
                                                            </ContentTemplate>
                                                        </asp:TabPanel>
                                                        <asp:TabPanel ID="tab1" runat="server">
                                                            <HeaderTemplate>
                                                                <asp:Label ID="lblQuoteDetail" runat="server" Text="Quote Detail" Style="color: Peru;
                                                                    font-size: 14px; line-height: 15px"></asp:Label>
                                                            </HeaderTemplate>
                                                            <ContentTemplate>
                                                                <uc8:ucListQuoteDetail ID="ucListQuoteDetail1" runat="server" />
                                                            </ContentTemplate>
                                                        </asp:TabPanel>
                                                        <asp:TabPanel ID="tab2" runat="server">
                                                            <HeaderTemplate>
                                                                <asp:Label ID="lblJobStatus" runat="server" Text="Job Status" Style="color: Peru;
                                                                    font-size: 14px; line-height: 15px"></asp:Label>
                                                            </HeaderTemplate>
                                                            <ContentTemplate>
                                                                <uc6:ucListStatus ID="ucListStatus1" runat="server" />
                                                            </ContentTemplate>
                                                        </asp:TabPanel>
                                                        <asp:TabPanel ID="tab3" runat="server">
                                                            <HeaderTemplate>
                                                                <span style="font-size: 14px; line-height: 15px">Parts Used </span>
                                                            </HeaderTemplate>
                                                            <ContentTemplate>
                                                                <uc3:ucPartsUsed ID="ucPartsUsed1" runat="server" />
                                                            </ContentTemplate>
                                                        </asp:TabPanel>
                                                        <asp:TabPanel ID="tab4" runat="server">
                                                            <HeaderTemplate>
                                                                <span style="font-size: 14px; line-height: 15px">Work Detail</span>
                                                            </HeaderTemplate>
                                                            <ContentTemplate>
                                                                <uc4:ucWorkDetail ID="ucWorkDetail1" runat="server" />
                                                            </ContentTemplate>
                                                        </asp:TabPanel>
                                                        <asp:TabPanel ID="tab7" runat="server">
                                                            <HeaderTemplate>
                                                                <span style="font-size: 14px; line-height: 15px">Action List</span>
                                                            </HeaderTemplate>
                                                            <ContentTemplate>
                                                                <uc7:ucActionList1 ID="ucActionList1" runat="server" />
                                                            </ContentTemplate>
                                                        </asp:TabPanel>
                                                    </asp:TabContainer>
                                                </ContentTemplate>
                                            </asp:UpdatePanel>
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="cleared">
                </div>
                <div class="PostFooterIcons metadata-icons">
                </div>
            </div>
        </div>
        <div class="cleared">
        </div>
    </div>
</div>
</div>
<style type="text/css">
    .style1
    {
        height: 25px;
    }
    .style2
    {
        width: 10px;
    }
</style>
<div class=" block">
</div>

<script language="javascript" type="text/javascript">
    function GetvalueListBox() {
        //        var listbox = document.getElementById("<%=ListFault.ClientID %>");
        //        var textbox = document.getElementById("<%=txtFaultDes.ClientID %>");
        //        var myvalue = listbox.options(listbox.selectedIndex).text;
        //        textbox.value = myvalue;
        var listbox = document.getElementById("<%=ListFault.ClientID %>");
        var textbox = document.getElementById("<%=txtFaultDes.ClientID %>");
        var listLength = listbox.options.length;
        for (var i = 0; i < listLength; i++) {
            if (listbox.options[i].selected) {
                //lst2.options.add(sel.options[i].text);
                textbox.value += listbox.options(listbox.selectedIndex).text + ", ";
            }
        }
    }

</script>

